package com.ziguang.redwood.websocket.chat;

import com.jfinal.kit.JsonKit;

public class Coder {
	
	public static Request decode(String str)
	{
		
		Request req = JsonKit.parse(str, Request.class);
		return req;
	}
	
	public static String encode(Response response)
	{
		return JsonKit.toJson(response);
	}
	

}
